<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>直角三角形</title>
</head>
<body>
    <script>
        var i;
        var j;
        for(i=1;i<=6;i++){
            for(j=1;j<=i;j++)
            document.write("&nbsp&nbsp*");
            document.write("</br>");
        }
    </script>
        <script>
            var i;
            var j;
            for(i=1;i<=6;i++){
                for(j=1;j<=10-i;j++)
                document.write("&nbsp&nbsp");
                for(j=1;j<=2*i-1;j++)
                document.write("&nbsp*");
                document.write("</br>");
            }
        </script>
        <textarea style="height: 500px ;width: 700px;" ><!DOCTYPE html>
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <meta http-equiv="X-UA-Compatible" content="IE=edge">
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
                <title>直角三角形</title>
            </head>
            <body>
                <script>
                    var i;
                    var j;
                    for(i=1;i<=6;i++){
                        for(j=1;j<=i;j++)
                        document.write("&nbsp&nbsp*");
                        document.write("</br>");
                    }
                </script>
                    <script>
                        var i;
                        var j;
                        for(i=1;i<=6;i++){
                            for(j=1;j<=10-i;j++)
                            document.write("&nbsp&nbsp");
                            for(j=1;j<=2*i-1;j++)
                            document.write("&nbsp*");
                            document.write("</br>");
                        }
                    </script>
                    
            </body>
            </html></textarea>
</body>
</html>